package com.ruoyi.hualian.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.hualian.domain.HlMaterial;
import org.apache.ibatis.annotations.Mapper;

/**
 * 材质Mapper接口
 * 
 * @author hujian
 * @date 2023-12-30
 */
@Mapper
public interface HlMaterialMapper extends BaseMapper<HlMaterial>
{
    /**
     * 查询材质
     * 
     * @param materialId 材质主键
     * @return 材质
     */
    public HlMaterial selectHlMaterialByMaterialId(Long materialId);

    /**
     * 查询材质列表
     * 
     * @param hlMaterial 材质
     * @return 材质集合
     */
    public List<HlMaterial> selectHlMaterialList(HlMaterial hlMaterial);

    /**
     * 新增材质
     * 
     * @param hlMaterial 材质
     * @return 结果
     */
    public int insertHlMaterial(HlMaterial hlMaterial);

    /**
     * 修改材质
     * 
     * @param hlMaterial 材质
     * @return 结果
     */
    public int updateHlMaterial(HlMaterial hlMaterial);

    /**
     * 删除材质
     * 
     * @param materialId 材质主键
     * @return 结果
     */
    public int deleteHlMaterialByMaterialId(Long materialId);

    /**
     * 批量删除材质
     * 
     * @param materialIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHlMaterialByMaterialIds(Long[] materialIds);
}
